ccR.Add_Rotation(
	3,
	"Ankhy_BASIC_Frost_Mage",
	"BASIC Rotation.\n\n Made by Ankhy."
)
function Ankhy_BASIC_Frost_Mage()

		if IsShiftKeyDown() then 
			if ccR.Spell.IsReady("Rune of Power") then SpellStopCasting() ccR.Cast.Spell("Rune of Power") end
				CameraOrSelectOrMoveStart()
				CameraOrSelectOrMoveStop()
			return
		end
	if (ccR.Player.IsInCombat() or (ccR.Player.IsInGroup() and ccR.Target.IsInCombat())) and ccR.Target.Is.Attackable() then
		if ccR.Target.Is.Attackable()
		and ccR.Spell.Is.Ready(PRISMATIC_CRYSTAL)
		and not ccR.Target.IsMoving()
		and ccR.Target.Distance() <= 40
		and ccR.Player.BuffStacks("Fingers of Frost") == 2
		then
			ccR.Cast.AoE(PRISMATIC_CRYSTAL, "target", 40, 12)
		end
		if ccR.Player.Crystal.Exists() then ccR.Player.Crystal.Target() end	
		if not ccR.Target.Has.MyDebuff("Frost Bomb") and ccR.Spell.IsReady("Frost Bomb") and (ccR.Spell.CDDuration("Prismatic Crystal") > 1 and ccR.Target.IsBoss() or not ccR.Target.IsBoss()) and ccR.Player.BuffStacks("Fingers of Frost") == 2 then ccR.Cast.Debuff("Frost Bomb") end
		if ccR.Spell.Is.Ready("Frozen Orb") and (ccR.Target.Count(8) > 2 or ccR.Target.IsBoss()) then ccR.Cast.Spell("Frozen Orb") end
		if ccR.Spell.Is.Ready("Freeze") and not ccR.Target.IsBoss() then ccR.Cast.AoE("Freeze", "target", 35, 8) end
		if ccR.Spell.Is.Ready("Water Jet") and ccR.Target.IsBoss() then ccR.Cast.Attack("Water Jet") end
		if (ccR.Target.Has.MyDebuff("Frost Bomb") or not ccR.Player.Has.Talent("Frost Bomb")) and ccR.Player.Has.Buff("Fingers of Frost") and ccR.Spell.IsReady("Ice Lance") then ccR.Cast.Attack("Ice Lance") end
		if ccR.Spell.IsReady("Frostfire Bolt") and ccR.Player.Has.Buff("Brain Freeze") then ccR.Cast.Attack("Frostfire Bolt") end
		if ccR.Spell.IsReady("Frostbolt") then ccR.Cast.Attack("Frostbolt") end
	end	
end
